<?php

class Main extends Tatu {
	
	function Main() {
		parent::Tatu();	
		$this->database();
	}
	
	function my_view($viewer, $data=array()) {
		$main_body = $this->view($viewer, $data, TRUE);
		
		$friend_list = $this->db->find_all('friend');
		$data = array(
			'main_body' => $main_body,
			'friend_list' => $friend_list
		);
		$this->view('portal/main', $data);
	}
	
}

?>